home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Technology Seed / ADC Seed CD - July 1999.toast / Carbon SDK 1.0d10c3 / Sample Code / AppearanceSample / Assertions.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-01  |  783 b   |  46 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        Assertions.c
  3.  
  4.     Contains:    Assertion routines.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997-1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (MAA)    Matt Ackeret
  21.         (edv)    Ed Voas
  22.  
  23.     Change History (most recent first):
  24.  
  25.          <2>      3/2/98    MAA        rename types.h to MacTypes.h
  26.          <1>     9/11/97    edv        First checked in.
  27. */
  28.  
  29. #include "AppearanceSamplePrefix.h"
  30.  
  31. #define DEBUG_MSG_TYPE 0
  32.  
  33. #include "Assertions.h"
  34. #include <stdio.h>
  35. #include <MacTypes.h>
  36. #include <TextUtils.h>
  37.  
  38. void AssertMsg( char* msg, char* file, int line )
  39. {
  40.  
  41.     char    newMsg[256];
  42.     
  43.     sprintf( newMsg, "%s, File: %s, Line: %d", msg, file, line );
  44.     DebugStr( c2pstr( newMsg ) );
  45. }
  46.